#-------------------------------------------------
#
# Project created by QtCreator 2010-07-06T11:33:43
#
#-------------------------------------------------

# Define current FreeTrack version
MAX_VERSION = 1
MIN_VERSION = 3
SUB_VERSION = 12
VERSION += $${MAX_VERSION}.$${MIN_VERSION}.$${SUB_VERSION}

DEFINES += VERSION=\"\\\"$${VERSION}\\\"\"
# GPS_DEBUG

##### OVI STORE DEPLOYMENT SECTION #####
#EXTRA_MOBILITY = systeminfo
#EXTRA_CAPABILITY = ReadDeviceData
#FREETRACK_UID3 = 0x20030FB1
#DEFINES += BUILD_FOR_OVI

##### WEB SITE AND TESTING DEPLOYMENT SECTION #####
EXTRA_MOBILITY =
EXTRA_CAPABILITY =
FREETRACK_UID3 = 0xed3fc3a3

# Add translations:
TRANSLATIONS = freetrack_it.ts \
               freetrack_de.ts \
               freetrack_fr.ts \
               freetrack_ar.ts \
               freetrack_zh.ts \
               freetrack_nl.ts \
               freetrack_es.ts \
               freetrack_pl.ts


# Add Qt dependencies
QT       += core gui network

# Some settings...
TARGET = FreeTrack
TEMPLATE = app
SOURCES += main.cpp\
        freetrack.cpp \
    trackpoint.cpp \
    layermanager.cpp \
    tracktable.cpp \
    trackgps.cpp \
    layerlabel.cpp \
    aboutdialog.cpp \
    oauthmanager.cpp \
    freetrackwidget.cpp \
    configwidget.cpp \
    freetrackdialog.cpp \
    layermapconfig.cpp \
    layermap.cpp \
    layer.cpp \
    layertrack.cpp \
    layertrackconfig.cpp \
    layertracklabel.cpp \
    layermapcalibrate.cpp \
    configfile.cpp \
    libjpeg/jerror.c \
    libjpeg/jcomapi.c \
    libjpeg/jutils.c \
    libjpeg/jmemnobs.c \
    libjpeg/jidctred.c \
    libjpeg/jidctfst.c \
    libjpeg/jfdctfst.c \
    libjpeg/jdtrans.c \
    libjpeg/jdsample.c \
    libjpeg/jdpostct.c \
    libjpeg/jdmerge.c \
    libjpeg/jdmaster.c \
    libjpeg/jdmarker.c \
    libjpeg/jdmainct.c \
    libjpeg/jdinput.c \
    libjpeg/jddctmgr.c \
    libjpeg/jdcolor.c \
    libjpeg/jdcoefct.c \
    libjpeg/jdatasrc.c \
    libjpeg/jdatadst.c \
    libjpeg/jdapistd.c \
    libjpeg/jdapimin.c \
    libjpeg/jctrans.c \
    libjpeg/jcsample.c \
    libjpeg/jcprepct.c \
    libjpeg/jcparam.c \
    libjpeg/jcmarker.c \
    libjpeg/jcmainct.c \
    libjpeg/jcinit.c \
    libjpeg/jcdctmgr.c \
    libjpeg/jccolor.c \
    libjpeg/jccoefct.c \
    libjpeg/jcapistd.c \
    libjpeg/jcapimin.c \
    libjpeg/jcmaster.c \
    imagejpeg.cpp \
    libjpeg/jmemmgr.c \
    workerprocess.cpp \
    workerprecachemap.cpp \
    trackwaypoint.cpp \
    workerclearcache.cpp \
    libjpeg/jchuff.c \
    libjpeg/jdhuff.c \
    libpng/png.c \
    libpng/pngerror.c \
    libpng/pngmem.c \
    image.cpp \
    imagepng.cpp \
    libpng/pngread.c \
    libpng/pngrio.c \
    libpng/pngrutil.c \
    libpng/pngrtran.c \
    libpng/pngget.c \
    libpng/pngset.c \
    libpng/pngwrite.c \
    libpng/pngwio.c \
    libpng/pngtrans.c \
    libpng/pngpread.c \
    libpng/pngwutil.c \
    libpng/pngwtran.c \
    libjpeg/jquant1.c \
    libjpeg/jidctint.c \
    libjpeg/jidctflt.c \
    libjpeg/jfdctflt.c \
    libjpeg/jdphuff.c \
    libjpeg/jcphuff.c \
    libjpeg/jquant2.c \
    workerloadgpx.cpp \
    ftpushbutton.cpp \
    fttabwidget.cpp \
    ll-utm/LatLong-UTMconversion.cpp \
    fthelpwidget.cpp \
    ftshowtext.cpp \
    mainselector.cpp \
    ftlabel.cpp \
    ftwidgetlist.cpp \
    ftwidgetlistitem.cpp \
    fticonlabel.cpp \
    statusbar.cpp \
    filenavigator.cpp \
    workersavegpx.cpp \
    ftlist.cpp \
    workerautoload.cpp
HEADERS  += freetrack.h \
    trackpoint.h \
    layermanager.h \
    tracktable.h \
    IncFreeTrack.h \
    trackgps.h \
    aboutdialog.h \
    oauthmanager.h \
    freetrackwidget.h \
    configwidget.h \
    freetrackdialog.h \
    layermapconfig.h \
    layermap.h \
    layer.h \
    layertrack.h \
    layertrackconfig.h \
    layertracklabel.h \
    layerlabel.h \
    layermapcalibrate.h \
    configfile.h \
    libjpeg/jpeglib.h \
    libjpeg/jconfig.h \
    libjpeg/jmorecfg.h \
    libjpeg/jerror.h \
    libjpeg/jversion.h \
    libjpeg/jpegint.h \
    libjpeg/jinclude.h \
    libjpeg/jdct.h \
    libjpeg/jchuff.h \
    imagejpeg.h \
    libjpeg/jmemsys.h \
    workerprocess.h \
    workerprecachemap.h \
    trackwaypoint.h \
    workerclearcache.h \
    libjpeg/jdhuff.h \
    libpng/png.h \
    libpng/pngconf.h \
    libpng/pngpriv.h \
    libpng/pnglibconf.h \
    libpng/pnginfo.h \
    libpng/pngstruct.h \
    libz/zlib.h \
    libz/zconf.h \
    libpng/pngdebug.h \
    image.h \
    imagepng.h \
    workerloadgpx.h \
    ftpushbutton.h \
    fttabwidget.h \
    ll-utm/LatLong-UTMconversion.h \
    ll-utm/constants.h \
    fthelpwidget.h \
    ftshowtext.h \
    mainselector.h \
    ftlabel.h \
    ftwidgetlist.h \
    fticonlabel.h \
    ftwidgetlistitem.h \
    statusbar.h \
    filenavigator.h \
    workersavegpx.h \
    ftlist.h \
    workerautoload.h
RESOURCES += freetrack.qrc

# Enable mobility libraries
CONFIG += mobility
MOBILITY = location network $${EXTRA_MOBILITY}

# Symbian specific section
symbian {

    vendorinfo = \
                ";The localised vendor name (a comma separated group of names in each language supported by the package)" \
                "%{\"Willy Gardiol\"}" \
                ";The global vendor name (used to identify the package for package upgrades)" \
                ":\"Willy Gardiol\""

    # Only S60v5 is supported right now
    dependencyinfo = \
                    "; Default HW/platform dependencies "\
                    "[0x1028315F],0,0,0,{\"S60ProductID\"}"

   help.sources = c:/Progetti/QtFreeTrack/freetrack_*.qm

    my_deployment.pkg_prerules += dependencyinfo vendorinfo
    DEPLOYMENT += my_deployment help

    TARGET.UID3 = $${FREETRACK_UID3}

    TARGET.CAPABILITY += Location NetworkServices $${EXTRA_CAPABILITY}

    TARGET.EPOCSTACKSIZE = 0x14000 # 0x800000 up to 8mb?
    TARGET.EPOCHEAPSIZE = 0x020000 0x4000000 #64mb
#                 0xFFFFFF 16mb

    ICON = freetrack.svg
    LIBS +=  -lhash -limut -lcone -lavkon -leiksrv
}
